//
//  HOGlobalData.h
//  WeiDu
//
//  Created by foguo-mac-1 on 23/11/2017.
//  Copyright © 2017 WeiDu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HODefine.h"
#import "HOCaiyunUser.h"

@interface HOGlobalData : NSObject

@property(nonatomic, assign)BOOL    isLoggedin;
@property(nonatomic, assign)BOOL    isSentDeviceToken;
@property(nonatomic, assign)BOOL    isPopedUpAlertForNotifaction;
@property(nonatomic, assign)BOOL    isNeedCheckVersion;
@property(nonatomic, assign)BOOL    isPopedUpAlertForVersion;
@property(nonatomic, assign)BOOL    needHandlePushMessage;
@property(nonatomic, assign)BOOL    dontNeedUpdateInfoAfterAppEnterFront;
@property(nonatomic, assign)int     pushMessageId;
@property(nonatomic, assign)int     pushMessageOriType;
@property(nonatomic, assign)int		totalUnreadMsgCount;
@property(nonatomic, assign)HO_AREA_SEL_TYPE selType;
@property(nonatomic, retain)HOCaiyunUser	*caiYunUser;
@property(nonatomic, assign)HO_AERA_LEVEL_TYPE levelType;


@property(nonatomic, retain)NSString *caiYunAccessToken;

+ (HOGlobalData *)sharedInstance;

- (void)clearReportArea;
- (void)clearReportDepartment;
- (void)clearReportType;


- (void)saveDeviceToken:(NSData *)deviceToken;

- (void)cleanup;
@end
